<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head><title>User List</title></head>

<body>
<li><a href="http://localhost:8080/MobileMaps/">Home</a></li>
<h3>User List</h3>
<li><a href="<s:url action="user_list"/>">user list</a></li>
<p>
<table cellspacing="1" cellpadding="5" border="1">
    <s:iterator value="users">
    <tr>
    <td>
        <s:url id="url" action="user_update">
            <s:param name="id" value="id" />
            <s:param name="act">update</s:param>
        </s:url>
        <s:a href="%{url}">Update</s:a>
	</td>
	<td>
        <s:url id="url" action="user_delete">
            <s:param name="id" value="id" />
            <s:param name="act">delete</s:param>
        </s:url>
        <s:a href="%{url}">Delete</s:a>
	</td>
    <td><s:property value="id" /></td>
    <td><s:property value="username" /></td>
    <td><s:property value="password" /></td>
    <td><s:property value="emaillist" /></td>
    </tr>
	</s:iterator>
</table>
</p>
</body>
</html>
